package com.zghhost.codedemo.systemin;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Scanner;

public class SystemInTest {
	public static void main(String[] args) throws IOException {
		//等待用户回车结束
		System.out.print("press any key to continue.");
		System.in.read();
		
		
		//读取用户输入行 Scanner方式
//		Scanner sc = new Scanner(System.in);
//		while(sc.hasNextLine()) {
//			System.out.println(sc.nextLine());
//		}
		
		//读取用户输入行 BufferReader方式
//		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
//		String line = null;
//		while((line=br.readLine()) != null) {
//			System.out.println(line);
//		}
	}
}
